package com.wran.controller;

import com.car.entity.CarInfo;
import com.wran.service.WarnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ：mmzs
 * @date ：Created in 2020/3/10 9:21
 * @description：报警控制层
 * @modified By：
 * @version: 10。0$
 */
@RestController
public class warnController {

    @Autowired
    private WarnService  warnService;

    @RequestMapping(value = "queryCar")
    public List<CarInfo> queryCar(){
        return  warnService.queryCar();
    }


}
